[campsite-support] backdating - email content of system emails
  • Hi,

    to set up the site I need to backdate prior issues including articles.
    As there will be some 6-8 prior issues I need to do that in the least
    troublesome way.

    I tried backdating with the existing issues and articles which were
    imported, but it is impossible to change the publication dates. Then I
    set up a new publication and tried to backdate this, also impossible,
    it defaults to the current date.

    Short of going into PHPMyadmin and adjusting dates manually, is there
    an easy way to do this?

    Also, my actions trigger system email responses. However, the whole
    email consists of just the header, no email body. Is that normal?

    Cheers,

    Pippa
  • 22 Comments sorted by
  • Hi,

    Go to issue configuration page where you can set the publication date.

    The event emails should contain a short description of the event so no, it's
    not normal to receive a blank message. I'll ask Holman, my colleague to help
    you with this.

    Mugur

    On Thu, Jul 30, 2009 at 11:23 AM, pippa wrote:

    > Hi,
    >
    > to set up the site I need to backdate prior issues including articles.
    > As there will be some 6-8 prior issues I need to do that in the least
    > troublesome way.
    >
    > I tried backdating with the existing issues and articles which were
    > imported, but it is impossible to change the publication dates. Then I
    > set up a new publication and tried to backdate this, also impossible,
    > it defaults to the current date.
    >
    > Short of going into PHPMyadmin and adjusting dates manually, is there
    > an easy way to do this?
    >
    > Also, my actions trigger system email responses. However, the whole
    > email consists of just the header, no email body. Is that normal?
    >
    > Cheers,
    >
    > Pippa
    >
    >
    >
  • Hello Mugur,

    Thursday, July 30, 2009, 3:21:40 PM, you wrote:

    MR> Go to issue configuration page where you can set the publication date.

    Here attached is a screenshot from the only area I found where I can
    set a publication date for issues. If there is another, please tell me
    so.

    So, while I can delete the date (see arrow where I deleted the 9 of
    2009), I cannot enter anything there. Whether I use Firefox or IE,
    whether I use the numbers on top or to the right of the keyboard, I
    cannot make any input. I can put the cursor there, but then I can only
    backspace, nothing else.

    I can use PHPMyadmin and have found dates in various lists searching
    for them. Will anything untoward happen to the database integrity if I
    manually adjust dates in the database itself? As I plan monthly
    editions/issues it should be no problem setting them all to consistent
    dates for the past issues, I'd just work with a day date and midnight.

    Still, I am used to being able to adjust such dates within the
    software itself, so I wonder what's the problem here.

    MR> The event emails should contain a short description of the event so no, it's
    MR> not normal to receive a blank message. I'll ask Holman, my colleague to help
    MR> you with this.

    Maybe I need to clarify that so far I haven't configured email in any
    which way, I just fed in my email address (during installation I
    believe).


    Cheers,

    Pippa
  • Pippa,

    It's a minor bug with that input field. But here is the workaround. Delete
    the whole date, then enter the date you want. Works on two of my sites.

    Please let me know if it works for you.

    Sava



    From: pippa

    To: Mugur Rus

    Date: 07/30/2009 05:33 PM

    Subject: Re[2]: [campsite-support] backdating - email content of system emails






    Hello Mugur,

    Thursday, July 30, 2009, 3:21:40 PM, you wrote:

    MR> Go to issue configuration page where you can set the publication date.

    Here attached is a screenshot from the only area I found where I can
    set a publication date for issues. If there is another, please tell me
    so.

    So, while I can delete the date (see arrow where I deleted the 9 of
    2009), I cannot enter anything there. Whether I use Firefox or IE,
    whether I use the numbers on top or to the right of the keyboard, I
    cannot make any input. I can put the cursor there, but then I can only
    backspace, nothing else.

    I can use PHPMyadmin and have found dates in various lists searching
    for them. Will anything untoward happen to the database integrity if I
    manually adjust dates in the database itself? As I plan monthly
    editions/issues it should be no problem setting them all to consistent
    dates for the past issues, I'd just work with a day date and midnight.

    Still, I am used to being able to adjust such dates within the
    software itself, so I wonder what's the problem here.

    MR> The event emails should contain a short description of the event so no,
    it's
    MR> not normal to receive a blank message. I'll ask Holman, my colleague to
    help
    MR> you with this.

    Maybe I need to clarify that so far I haven't configured email in any
    which way, I just fed in my email address (during installation I
    believe).


    Cheers,

    Pippa[attachment "screenshot.jpg" deleted by Sava Tatic/Mdlf]
  • Hello Sava,

    Thursday, July 30, 2009, 5:45:11 PM, you wrote:

    stmo> It's a minor bug with that input field. But here is the workaround. Delete
    stmo> the whole date, then enter the date you want. Works on two of my sites.
    stmo> Please let me know if it works for you.

    Yes, it did! Smile Great!

    Thanks for the tip!

    Cheers,

    Pippa
  • I often copy the date elsewhere (for example in the Google field in
    the browser) that I keep the date format, edit the date and then paste
    it back.

    Sanna

    On 30.7.2009, at 18.51, pippa wrote:

    > Hello Sava,
    >
    > Thursday, July 30, 2009, 5:45:11 PM, you wrote:
    >
    > stmo> It's a minor bug with that input field. But here is the
    > workaround. Delete
    > stmo> the whole date, then enter the date you want. Works on two of
    > my sites.
    > stmo> Please let me know if it works for you.
    >
    > Yes, it did! Smile Great!
    >
    > Thanks for the tip!
    >
    > Cheers,
    >
    > Pippa
    >
  • Ah the Steve Jobs effect Smile In Linux, you just use the middle mouse button
    to highlight then insert again Smile

    Just kidding. Good tip. And we'll fix this input field.

    In fact, would you like to report the bug in Trac
    (http://trac.campware.org/campsite/)? (I'll do it later today, but if you
    beat me to it, all the better).

    Sava



    From: Generare Management Department

    To: campsite-support@campware.org

    Date: 07/30/2009 06:22 PM

    Subject: Re: Re[4]: [campsite-support] backdating - email content of system emails






    I often copy the date elsewhere (for example in the Google field in
    the browser) that I keep the date format, edit the date and then paste
    it back.

    Sanna

    On 30.7.2009, at 18.51, pippa wrote:

    > Hello Sava,
    >
    > Thursday, July 30, 2009, 5:45:11 PM, you wrote:
    >
    > stmo> It's a minor bug with that input field. But here is the
    > workaround. Delete
    > stmo> the whole date, then enter the date you want. Works on two of
    > my sites.
    > stmo> Please let me know if it works for you.
    >
    > Yes, it did! Smile Great!
    >
    > Thanks for the tip!
    >
    > Cheers,
    >
    > Pippa
    >
  • Hello,

    I have a few comprehension questions here.

    I can assign an article only to one section.

    However, I also - and at the SAME time - can assign that article to
    several topics.

    E.g. I have an article which deals with tulips, tulips which happen to
    be grown in the Netherlands. It goes into section "flowers". The
    topics I attach are "tulips" and "Netherlands"

    Then I have an article which is the review of a restaurant in
    Amsterdam. This goes into section "restaurant reviews". The topics I
    attach are "holidays" and "Netherlands".

    Is it now possible to create a menu which will call pages containing
    all articles attached to a specific topic, e.g. "Netherlands"?

    How exactly is the navigation template and how would be the template
    for that page (e.g. similar to a section page).

    Next...

    If I create topics which actually are subthemes of a section, how do I
    create the necessary navigation?

    E.g. I have the section "Flowers". Now I have the topics "tulips",
    "roses" and "lilies".

    I'd like a navigation like this:

    sections: travel | x flowers | restaurant reviews | columns
    ---------------------------------------------------------------
    topics: tulpis | roses | lilies
    ---------------------------------------------------------------

    "x" represents a highlighted navigation link. This link should call
    the section template, but at the same time I'd like a row of the
    topics relevant to that section displayed underneath that row which
    will, when clicked display only articles of that topic.

    Any ideas?

    Cheers,

    Pippa
  • Hi,

    May you send us one of those e-mails you get from the system and tell
    us what action you were trying to execute (in case e-mail doesn't say
    anything about it) ? Thanks,

    Best,



    On Thu, Jul 30, 2009 at 3:23 AM, pippa wrote:
    > Hi,
    >
    > to set up the site I need to backdate prior issues including articles.
    > As there will be some 6-8 prior issues I need to do that in the least
    > troublesome way.
    >
    > I tried backdating with the existing issues and articles which were
    > imported, but it is impossible to change the publication dates. Then I
    > set up a new publication and tried to backdate this, also impossible,
    > it defaults to the current date.
    >
    > Short of going into PHPMyadmin and adjusting dates manually, is there
    > an easy way to do this?
    >
    > Also, my actions trigger system email responses. However, the whole
    > email consists of just the header, no email body. Is that normal?
    >
    > Cheers,
    >
    > Pippa
    >
    >
    >



    --
    /holman
  • Done,
    I hope in the correct place:
    http://trac.campware.org/campsite/ticket/2954

    I think this doesn't need very lond explanation in order to remember
    or know what is the bug.

    /Sanna

    On 30.7.2009, at 20.01, sava.tatic@mdlf.org wrote:

    > Ah the Steve Jobs effect Smile In Linux, you just use the middle mouse
    > button
    > to highlight then insert again Smile
    >
    > Just kidding. Good tip. And we'll fix this input field.
    >
    > In fact, would you like to report the bug in Trac
    > (http://trac.campware.org/campsite/)? (I'll do it later today, but
    > if you
    > beat me to it, all the better).
    >
    > Sava
    >
    >
    >
    > From: Generare Management Department
    >
    > To: campsite-support@campware.org
    >
    > Date: 07/30/2009 06:22 PM
    >
    > Subject: Re: Re[4]: [campsite-support] backdating - email
    > content of system emails
    >
    >
    >
    >
    >
    >
    > I often copy the date elsewhere (for example in the Google field in
    > the browser) that I keep the date format, edit the date and then paste
    > it back.
    >
    > Sanna
    >
    > On 30.7.2009, at 18.51, pippa wrote:
    >
    >> Hello Sava,
    >>
    >> Thursday, July 30, 2009, 5:45:11 PM, you wrote:
    >>
    >> stmo> It's a minor bug with that input field. But here is the
    >> workaround. Delete
    >> stmo> the whole date, then enter the date you want. Works on two of
    >> my sites.
    >> stmo> Please let me know if it works for you.
    >>
    >> Yes, it did! Smile Great!
    >>
    >> Thanks for the tip!
    >>
    >> Cheers,
    >>
    >> Pippa
    >>
  • Thank you. that was the correct place.



    From: Generare Management Department

    To: campsite-support@campware.org

    Date: 07/30/2009 07:39 PM

    Subject: Re: Re[4]: [campsite-support] backdating - email content of system emails






    Done,
    I hope in the correct place:
    http://trac.campware.org/campsite/ticket/2954

    I think this doesn't need very lond explanation in order to remember
    or know what is the bug.

    /Sanna

    On 30.7.2009, at 20.01, sava.tatic@mdlf.org wrote:

    > Ah the Steve Jobs effect Smile In Linux, you just use the middle mouse
    > button
    > to highlight then insert again Smile
    >
    > Just kidding. Good tip. And we'll fix this input field.
    >
    > In fact, would you like to report the bug in Trac
    > (http://trac.campware.org/campsite/)? (I'll do it later today, but
    > if you
    > beat me to it, all the better).
    >
    > Sava
    >
    >
    >
    > From: Generare Management Department
    >
    > To: campsite-support@campware.org
    >
    > Date: 07/30/2009 06:22 PM
    >
    > Subject: Re: Re[4]: [campsite-support] backdating - email
    > content of system emails
    >
    >
    >
    >
    >
    >
    > I often copy the date elsewhere (for example in the Google field in
    > the browser) that I keep the date format, edit the date and then paste
    > it back.
    >
    > Sanna
    >
    > On 30.7.2009, at 18.51, pippa wrote:
    >
    >> Hello Sava,
    >>
    >> Thursday, July 30, 2009, 5:45:11 PM, you wrote:
    >>
    >> stmo> It's a minor bug with that input field. But here is the
    >> workaround. Delete
    >> stmo> the whole date, then enter the date you want. Works on two of
    >> my sites.
    >> stmo> Please let me know if it works for you.
    >>
    >> Yes, it did! Smile Great!
    >>
    >> Thanks for the tip!
    >>
    >> Cheers,
    >>
    >> Pippa
    >>
  • Hello Holman,

    Thursday, July 30, 2009, 4:52:31 PM, you wrote:

    HR> May you send us one of those e-mails you get from the system and tell
    HR> us what action you were trying to execute (in case e-mail doesn't say
    HR> anything about it) ? Thanks,

    Very curious...

    When I get that email under the original recipient email it
    effectively shows only the header with the subject being what it deals
    with "Change article status". There is no message body in evidence.
    Now that I tried to forward that email, this is what gets pasted into
    the forward:

    .......................................................................

    This is a forwarded message
    From: pippaschatz@yahoo.de
    To: pippaschatz@yahoo.de
    Date: Thursday, July 30, 2009, 6:30:04 PM
    Subject: Change article status

    ===8<==============Original message text===============


    Performed by: Administrator (admin) - email: pippaschatz@yahoo.de\n
    Article #154 "Millions disconnected by NTT broadband outage
    (Duplicate)" status changed from Published to Published. (Publication
    1, Issue 1, Section 80) on 2009-07-30 12:29:35

    ===8<===========End of original message text===========

    .......................................................................

    Cheers,

    Pippa
  • hm, could it be your e-mail client (which one is it?)? I believe Campsite
    sends text-only notifications, so it can't be some html nonsense, but maybe
    I am mistaken.



    From: pippa

    To: Holman Romero

    Date: 07/30/2009 08:32 PM

    Subject: Re[2]: [campsite-support] backdating - email content of system emails






    Hello Holman,

    Thursday, July 30, 2009, 4:52:31 PM, you wrote:

    HR> May you send us one of those e-mails you get from the system and tell
    HR> us what action you were trying to execute (in case e-mail doesn't say
    HR> anything about it) ? Thanks,

    Very curious...

    When I get that email under the original recipient email it
    effectively shows only the header with the subject being what it deals
    with "Change article status". There is no message body in evidence.
    Now that I tried to forward that email, this is what gets pasted into
    the forward:

    .......................................................................

    This is a forwarded message
    From: pippaschatz@yahoo.de
    To: pippaschatz@yahoo.de
    Date: Thursday, July 30, 2009, 6:30:04 PM
    Subject: Change article status

    ===8<==============Original message text===============


    Performed by: Administrator (admin) - email: pippaschatz@yahoo.de\n
    Article #154 "Millions disconnected by NTT broadband outage
    (Duplicate)" status changed from Published to Published. (Publication
    1, Issue 1, Section 80) on 2009-07-30 12:29:35

    ===8<===========End of original message text===========

    .......................................................................

    Cheers,

    Pippa
  • Hello Sava,

    Thursday, July 30, 2009, 8:51:34 PM, you wrote:

    stmo> hm, could it be your e-mail client (which one is it?)? I believe Campsite
    stmo> sends text-only notifications, so it can't be some html nonsense, but maybe
    stmo> I am mistaken.

    I use ordinary TheBat and it's set to text-only messages anyway. Never
    had a similar problem before, while using that client.

    Cheers,

    Pippa
  • pippa wrote on 07/30/2009 07:07:54 PM:

    > From:

    > Hello,
    >
    > I have a few comprehension questions here.
    >
    > I can assign an article only to one section.
    >
    > However, I also - and at the SAME time - can assign that article to
    > several topics.
    >
    > E.g. I have an article which deals with tulips, tulips which happen to
    > be grown in the Netherlands. It goes into section "flowers". The
    > topics I attach are "tulips" and "Netherlands"

    correct

    >
    > Then I have an article which is the review of a restaurant in
    > Amsterdam. This goes into section "restaurant reviews". The topics I
    > attach are "holidays" and "Netherlands".
    >
    > Is it now possible to create a menu which will call pages containing
    > all articles attached to a specific topic, e.g. "Netherlands"?

    yes (for an extensive example of this in action, see www.tol.org)

    > How exactly is the navigation template and how would be the template
    > for that page (e.g. similar to a section page).

    I hope someone else will step in here with a concrete example of code.
    (you'd never want to rely on my code for anything, believe me)

    > Next...
    >
    > If I create topics which actually are subthemes of a section, how do I
    > create the necessary navigation?
    >
    > E.g. I have the section "Flowers". Now I have the topics "tulips",
    > "roses" and "lilies".
    >
    > I'd like a navigation like this:
    >
    > sections: travel | x flowers | restaurant reviews | columns
    > ---------------------------------------------------------------
    > topics: tulpis | roses | lilies
    > ---------------------------------------------------------------
    >
    > "x" represents a highlighted navigation link. This link should call
    > the section template, but at the same time I'd like a row of the
    > topics relevant to that section displayed underneath that row which
    > will, when clicked display only articles of that topic.

    Again, I call on someone else to answer this.
  • Use set_topic and list_subtopics to create menus of root topics/subtopics:

    http://code.campware.org/manuals/campsite/3.3/index.php?id=71
    http://code.campware.org/manuals/campsite/3.3/index.php?id=139

    Set the template topic in order to get a list of articles having the given
    topic. E.g.:

    {{ set_topic name=".." }}
    {{ list_articles }}

    This will list only the articles having the set topic. See:
    http://code.campware.org/manuals/campsite/3.3/index.php?id=75

    Quote from the manual:
    "*Note on topics*: If a certain topic was defined in the template
    environment by use of
    "set_topic"
    statement or URL
    parameterthe
    list will change the behavior of articles list: only articles having
    that topic will be listed."

    Mugur

    On Thu, Jul 30, 2009 at 8:07 PM, pippa wrote:

    > Hello,
    >
    > I have a few comprehension questions here.
    >
    > I can assign an article only to one section.
    >
    > However, I also - and at the SAME time - can assign that article to
    > several topics.
    >
    > E.g. I have an article which deals with tulips, tulips which happen to
    > be grown in the Netherlands. It goes into section "flowers". The
    > topics I attach are "tulips" and "Netherlands"
    >
    > Then I have an article which is the review of a restaurant in
    > Amsterdam. This goes into section "restaurant reviews". The topics I
    > attach are "holidays" and "Netherlands".
    >
    > Is it now possible to create a menu which will call pages containing
    > all articles attached to a specific topic, e.g. "Netherlands"?
    >
    > How exactly is the navigation template and how would be the template
    > for that page (e.g. similar to a section page).
    >
    > Next...
    >
    > If I create topics which actually are subthemes of a section, how do I
    > create the necessary navigation?
    >
    > E.g. I have the section "Flowers". Now I have the topics "tulips",
    > "roses" and "lilies".
    >
    > I'd like a navigation like this:
    >
    > sections: travel | x flowers | restaurant reviews | columns
    > ---------------------------------------------------------------
    > topics: tulpis | roses | lilies
    > ---------------------------------------------------------------
    >
    > "x" represents a highlighted navigation link. This link should call
    > the section template, but at the same time I'd like a row of the
    > topics relevant to that section displayed underneath that row which
    > will, when clicked display only articles of that topic.
    >
    > Any ideas?
    >
    > Cheers,
    >
    > Pippa
    >
    >
    >
  • Hello Mugur,

    I'm sorry, but this is exactly the problem.... *sigh*

    I - am - no - coder.

    Or in other words: I don't understand anything which is written there!
    Not even a little bit. So, while the relevant manual info might make
    sense to you, it does not to me. I need stuff spelled out.

    So, if I have three topics (roses, lilies, tulips) and I have a
    section (flowers), how do I cause these three topics to be shown as
    menu links under the section-rank navigation when someone clicks on
    the section link "flowers" with the main section page loading in the
    content area?

    And then, what exactly is needs to be done so that each of these three
    topic links calls the attached (to each selectively) content in the
    content area?

    Spelled out, ready to be pasted into a template.

    You see, Gabi has a point there. Like her I am just an admin and
    webmaster, I don't develop software and I don't have the slightest
    idea how to do that. If this were Joomla or Typolight, I'd simply
    create a nested menu and pointed each menu link to the correct ID. If
    this was Wordpress, I'd use e.g. a category or a sub-category tag
    within the template and I'd have a nested navigation as well. But this
    kind of stuff is entirely beyond me.

    Reading it sounds as if it calls articles which have a topic attached
    into the content field. It does NOT sound like a menu item called by
    another menu item.

    What I need is this:

    http://www.taz.de/1/debatte/kolumnen/artikel/1/geliebte-margarine/

    Now click on "Zukunft" or "Leben" and watch what happens. This is
    precisely what I want. I've read and re-read everything I found about
    topics, navigation and sections in the manual, and I am not one single
    step closer to a solution! So, I can here and now state, giving me
    those links doesn't help me. I need the correct code and I need
    instructions on how to place it where.

    Alternatively and for the future, I suggest you develop some sort of
    navigation creation module, where people can built a nested navigation
    using sections, topics and subtopics simply by defining the navigation
    logic per se. Which still doesn't help me now. Wink

    Cheers,

    Pippa





    MR> Use set_topic and list_subtopics to create menus of root topics/subtopics:

    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=71
    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=139

    MR> Set the template topic in order to get a list of articles having the given
    MR> topic. E.g.:

    MR> {{ set_topic name=".." }}
    MR> {{ list_articles }}

    MR> This will list only the articles having the set topic. See:
    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=75

    MR> Quote from the manual:
    MR> "*Note on topics*: If a certain topic was defined in the template
    MR> environment by use of
    MR> "set_topic"
    MR> statement or URL
    MR> parameterthe
    MR> list will change the behavior of articles list: only articles having
    MR> that topic will be listed."
  • Yeah, I understand what you're saying (I am the same way when it comes to
    coding).

    Mugur's talent is in coding software, it's inefficient to use his time to
    spell out things. Someone else in our community should come up with an
    example of how this can be done. I'll ask some Campsite web developers
    privately (alas half of the ones I know personally are on holidays) to pay
    more attention to the list and provide an example for the functionality you
    want.

    All the best,

    Sava



    From: pippa

    To: Mugur Rus

    Date: 07/30/2009 11:15 PM

    Subject: Re[2]: [campsite-support] Topics, Sections and Navigation






    Hello Mugur,

    I'm sorry, but this is exactly the problem.... *sigh*

    I - am - no - coder.

    Or in other words: I don't understand anything which is written there!
    Not even a little bit. So, while the relevant manual info might make
    sense to you, it does not to me. I need stuff spelled out.

    So, if I have three topics (roses, lilies, tulips) and I have a
    section (flowers), how do I cause these three topics to be shown as
    menu links under the section-rank navigation when someone clicks on
    the section link "flowers" with the main section page loading in the
    content area?

    And then, what exactly is needs to be done so that each of these three
    topic links calls the attached (to each selectively) content in the
    content area?

    Spelled out, ready to be pasted into a template.

    You see, Gabi has a point there. Like her I am just an admin and
    webmaster, I don't develop software and I don't have the slightest
    idea how to do that. If this were Joomla or Typolight, I'd simply
    create a nested menu and pointed each menu link to the correct ID. If
    this was Wordpress, I'd use e.g. a category or a sub-category tag
    within the template and I'd have a nested navigation as well. But this
    kind of stuff is entirely beyond me.

    Reading it sounds as if it calls articles which have a topic attached
    into the content field. It does NOT sound like a menu item called by
    another menu item.

    What I need is this:

    http://www.taz.de/1/debatte/kolumnen/artikel/1/geliebte-margarine/

    Now click on "Zukunft" or "Leben" and watch what happens. This is
    precisely what I want. I've read and re-read everything I found about
    topics, navigation and sections in the manual, and I am not one single
    step closer to a solution! So, I can here and now state, giving me
    those links doesn't help me. I need the correct code and I need
    instructions on how to place it where.

    Alternatively and for the future, I suggest you develop some sort of
    navigation creation module, where people can built a nested navigation
    using sections, topics and subtopics simply by defining the navigation
    logic per se. Which still doesn't help me now. Wink

    Cheers,

    Pippa





    MR> Use set_topic and list_subtopics to create menus of root
    topics/subtopics:

    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=71
    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=139

    MR> Set the template topic in order to get a list of articles having the
    given
    MR> topic. E.g.:

    MR> {{ set_topic name=".." }}
    MR> {{ list_articles }}

    MR> This will list only the articles having the set topic. See:
    MR> http://code.campware.org/manuals/campsite/3.3/index.php?id=75

    MR> Quote from the manual:
    MR> "*Note on topics*: If a certain topic was defined in the template
    MR> environment by use of
    MR> "set_topic<
    http://code.campware.org/manuals/campsite/3.3/index.php?id=71>"
    MR> statement or URL
    MR> parameter >the
    MR> list will change the behavior of articles list: only articles having
    MR> that topic will be listed."
  • Hello Sava,

    Thursday, July 30, 2009, 10:26:02 PM, you wrote:

    stmo> yes (for an extensive example of this in action, see www.tol.org)

    Yes, I have seen this already. Still I have no idea how it's done or
    how what I want to do can be done Smile

    Cheers,

    Pippa
  • * last reply went only to Pippa, but i though this might be usefull
    for others as well...

    Best Boban


    Hello Pippa,

    i have read your questions and i think something like this would solve
    your problem.

    First, some things that you need to know regarding topics.
    Make sure when creating them to organize them (i figured you are
    already did that) but will not hurt to say it again.
    E.g.
    Make root topic Flowers, and under that topic, add subtopics to get
    tree structure. Will make your life much easier later on for both
    coding and editor later on.
    Also plan them in a way that will not end up using same subtopic name.
    That has to be unique, so Selling -> Cars and Buying -> Cars will not
    work.

    Now, for implementation itself. Topics can be powerful addon to
    filtering or tagging (kindof) articles, but you need to be very
    careful how you use them.
    Now, to list subtopics of all Flowers you would do something like this:

    This would list all subtopics of Flowers root topic
    Basicaly you set first root topic and since you have topic defined,
    you are able to list all subtopics for that root topic. Thats why i
    said organize them well.

    {{ set_topic name="Flowers:en" }}

    {{* if you wish that results page be blank with no results then remove
    this below.
    otherwise, if you want something like "Show all" then leave it as it
    will tell campsite to use default_topic from begining of template,
    thus with no filter applied will be complete list of articles. So with
    no filter it will list whole bunch of articles *}}
    {{ set_default_topic }}

    {{ list_articles order="bynumber desc"}}

    {{ $campsite->article->name }}


    {{/list_articles }}

    Now as building menu, with filters, here is something i came with
    quickly... Not sure if it will suit you, but worth a try anyway...
    Basicaly, you hard-code root level of menu, and automaticaly parse
    their respective child topics. Other solution, now that im thinking of
    to add more dynamics for root level menu, would be like creating one
    article that will hold all topics of root menu, and make menu by
    targeting that specific article (lots of ways to do this), and then
    list its topics with list_article_topics, then make menu out of
    results of that list and apply bottom part as it is now.


    {{ set_topic name="Flowers:en" }}
    {{
    $campsite->topic->name }}

    {{ set_topic name="Cities:en" }}
    {{
    $campsite->topic->name }}

    {{ set_default_topic }}

    {{ if $campsite->topic->defined }}

    {{ /if }}

    {{ list_articles order="bynumber desc"}}

    {{ $campsite->article->name }} from {{ $campsite->section->name }}


    {{ /list_articles }}

    I hope i have helped you at least a bit with this one Smile

    Best regards
    Boban


    Quoting pippa :

    > Hello Sava,
    >
    > Thursday, July 30, 2009, 10:26:02 PM, you wrote:
    >
    > stmo> yes (for an extensive example of this in action, see www.tol.org)
    >
    > Yes, I have seen this already. Still I have no idea how it's done or
    > how what I want to do can be done Smile
    >
    > Cheers,
    >
    > Pippa
    >
    >
    >
  • Hello Slobodan,

    I think this may not be exactly what I am thinking about, possibly I
    just don't understand what you write Wink.

    It all would be no problem if there was a tag with which I could
    directly call any articles linked to a specific topic and if it were
    possible to link topics to a specific section.

    First off, please look at the horizontal menu of the TAZ newspaper:

    http://www.taz.de/1/debatte/kolumnen/artikel/1/geliebte-margarine/

    and there especially at what happens when you click on a link in the
    upper row.

    So, let's see what we have...

    We have sections, let us say these sections:

    1. holidays
    2. flowers
    3. names

    This is easy to set up as sections. But it gives us only 1 depth of
    linking. The menu links will bring up all articles written under each
    section within an issue.

    Now, what we need within a section are different sub-sections or if
    you will topics of a section.

    1. holidays (section)
    1.1. -- restaurant reviews (topic within this section)
    1.2. -- hotels (topic within this section)
    1.3. -- skiing (topic within this section)

    2. flowers (section)
    2.1. -- tulips (topic within this section)
    2.2. -- lilies (topic within this section)
    2.3. -- roses (topic within this section)

    3. animals (section)
    3.1. -- cats (topic within this section)
    3.2. -- dogs (topic within this section)
    3.3. -- birds (topic within this section)

    That's a navigation two links/tiers deep, and it's what I need to
    structure the content properly.

    As far as I understand things so far, there is however no connection
    between a section and topics inside it. Or in other words, there is no
    direct way to associate topics not just with articles, but also with
    sections, right?

    And there is also no way to make child-sections/sub-sections under a
    section, right?

    Both of the above would make things easier, I suspect. Are there any
    plans to do this eventually?

    I could do a two-tier ordering with topics, like e.g.

    1. flowers (topic)
    1.1. -- tulips (sub-topic)
    1.2. -- lilies (sub-topic)
    1.3. -- roses (sub-topic)

    But topics are NOT sections and articles then will not be called by
    section and all the section related sorting and templating won't work.

    The problem, at least according to my understanding is that there is
    no dynamic link between a section and any topics under it,
    respectively, that there is no way to order the section into
    subsections.

    As to your coding, Slobodan, I'm sorry, I am no coder, this has been
    going totally past me so far (huge sorry!) - what I mean to say, I
    can't do anything with this, I don't understand any of this. E.g. if
    there is a precise tag which I should paste somewhere, or some precise
    bit of code I need to fit into a template, okay. But you are already
    way above my head. Wink

    Cheers,

    Pippa
  • Hello Mugur,

    Saturday, August 1, 2009, 6:36:00 PM, you wrote:

    MR> You don't need those sections, you can structure your publication using only
    MR> topics. Sections are inherited from the first implementation which happened
    MR> in 1999, 10 years ago and are kind of obsolete. At that time topic did not
    MR> exist even as a future concept in Campsite.

    MR> Topics instead are much more powerful. You lose nothing by not using
    MR> sections for structuring your site, you can still sort articles by a
    MR> multitude of properties. You can assign multiple topics to an article, which
    MR> is much more natural; with sections you can only assign a single section to
    MR> an article.

    Oookay, so I understood the principles correctly Wink Thank God for
    small favours ;)=)

    MR> Sections can be useful to do a basic separation of the articles in the
    MR> backend. In the frontend they are very limiting.

    And again I understood the basic difference correctly - great!

    MR> Note: the template I wrote is strictly functional, no AJAX or shiny look.
    MR> You'll have to write the HTML for shiny look or hire somebody to make it
    MR> shiny for you. This is beyond free support.

    No problem, I believe I will be able to style it quite normally as a
    list. I can do that sort of thing myself. I just can't write/grasp PHP
    indepth Wink)) Styling and normal HTML/XHTML is well within my reach
    however.

    MR> I tested the template and it gives you a two row menu just like here:
    MR> http://www.taz.de/1/debatte/kolumnen/
    MR> but without AJAX.

    It's absolutely wonderful, thanks, Mugur!

    Cheers,

    Pippa